extends 基础弹窗类

@onready var restart_button: Button = %RestartButton
@onready var label: Label = %Label

func 初始化(data):
	super.初始化(data)
	label.text=data.结局

func _on_restart_button_pressed() -> void:
	GameViewManager.切换场景("棋局设定")
	关闭()

func _on_restart_this_button_pressed() -> void:
	var 棋局=GameViewManager.切换场景("棋局")
	棋局.初始化棋局(GameGlobal.当前棋谱)
	关闭()
